package StudyCode.summary.mydatetime;

import java.time.LocalTime;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class CalculatingTimes {
	public static void main(String[] args) {
		LocalTime time = LocalTime.now();
		System.out.println("当前时间:" + time);
		LocalTime minusHrs = time.minusHours(5);
		System.out.println("减去5小时: " + minusHrs);

		LocalTime plusMins = time.plusMinutes(30);
		System.out.println("加30分钟: " + plusMins);
	}
}
